<template>
<div>
  <span>我是_category/index 父级</span>
  <nuxt-child/>
</div>

</template>

<script>
import Vue from 'vue'

export default Vue.extend({
  name: 'categoryIndexPage'
  ,
  validate({ params }) {
    console.log('params', params)
    // 必须是number类型
    return /^\d+$/.test(params.category)
  }
})
</script>
